From: Dan Winship Date: Fri, 17 Dec 2010 20:01:19 +0000 (-0500) Subject: ShellApp: is_on_workspace() should be TRUE for workspaceless apps X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~9284 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=99a865fb0fe76822157d2612e31a89650ead01b0;p=gnome-shell.git ShellApp: is_on_workspace() should be TRUE for workspaceless apps If a starting-up app has not requested a particular workspace, then shell_app_is_on_workspace() should return TRUE for any workspace. Otherwise we will never get startup notification for them, since the app menu only shows apps that are starting on the current workspace. https://bugzilla.gnome.org/show_bug.cgi?id=635089 --- diff --git a/src/shell-app.c b/src/shell-app.c index fae61c4d4..0f733a429 100644 --- a/src/shell-app.c +++ b/src/shell-app.c @@ -577,7 +577,8 @@ shell_app_is_on_workspace (ShellApp *app, if (shell_app_get_state (app) == SHELL_APP_STATE_STARTING) { - if (meta_workspace_index (workspace) == app->started_on_workspace) + if (app->started_on_workspace == -1 || + meta_workspace_index (workspace) == app->started_on_workspace) return TRUE; else return FALSE;